package com.heny.demo.entity;

import lombok.Data;
/**
 * @author litao.cc
 * @version TurnPointDTO.java v0.1 t2025/4/24 22:58
 * @date 2025/4/24 22:58
 * @description TurnPointDTO
 */
@Data
public class TurnPointVO {
    private Integer id;
    private String index;
    private Double x;
    private Double y;
    private Double z;
    private Integer SRID;
    public TurnPointVO(TurnPoint turnPoint) {
        this.id = turnPoint.getId();
        this.index = turnPoint.getIndex();
        this.x = turnPoint.getCoordinate().getX();
        this.y = turnPoint.getCoordinate().getY();
        this.SRID = turnPoint.getCoordinate().getSRID();
    }
}